import EmptyLayout from "@/components/EmptyLayout";
export default {
    path: "users",
    component: EmptyLayout,
    children: [
        {
            path: "user",
            component: EmptyLayout,
            children: [
                {
                    path: "",
                    name: "用户管理",
                    component: (resolve) => require(["@/components/users/User"], resolve)
                },
                {
                    path: "new",
                    name: "新增用户",
                    component: (resolve) => require(["@/components/users/UserEdit"], resolve)
                },
                {
                    // 路径参数
                    path: ":id",
                    name: "新增用户",
                    component: (resolve) => require(["@/components/users/UserEdit"], resolve)
                }
            ]
        },
        {
            path: "role",
            name: "角色管理",
            component: (resolve) => require(["@/components/users/Role"], resolve)
        }
    ]
};